﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Threading.Tasks;

namespace S2_Xxxx_XxxNetApi.Services
{
    public class UserServices
    {
        public dynamic GetUserList()
        {
            List<t_user> list = BaseRepository<t_user>.Get("Name like '%黄%'");
            return list;
        }


        public DataTable GetData()
        {
            DataTable dt = BaseRepository.GetBySql("select * from t_user limit 10");
            return dt;
        }

        public DataTable GetPageData(int pageSize, int pageNumber, out int pageCount)
        {
            DataTable dt = BaseRepository.GetByPage("select * from t_user limit 100", pageSize, pageNumber, out pageCount);
            return dt;
        }

    }
}
